<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <div>{{name}}</div>
        <!--建议用 {{name}}-->
        <div v-text="name"></div>
        <div>{{str}}</div>
        <div v-text="str"></div>
    </div>
</body>
<script type="text/javascript">
    Vue.config.productionTip = false;
    const vm = new Vue({
        el: '#root',
        data(){
            return {
                name:'abc',
                str:"<h3>h3</h3>"
            }
        },
        computed:{
            
        },
        methods:{
            
        },
        watch:{
            
        }
    });
</script>
</html>